home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / std_unix / archive / text0023.txt < prev    next >
Encoding:
Text File  |  1993-07-06  |  998 b   |  25 lines

  1. Submitted-by: peter@ferranti.com (peter da silva)
  2.  
  3. In article <1ojaj8INNrrl@ftp.UU.NET> meulenbr@prl.philips.nl (Frans Meulenbroeks) writes:
  4. >My best guess would be to reject the open and return an errno.
  5. >If that is right, then what is the best errno value to return?
  6. >EACCESS?
  7.  
  8. I don't think a *device* should ever return EACCESS or (for that matter)
  9. ENOENT. I've had *both* of them, and every time I (or the person I'm working
  10. with) has gone scurrying around trying to figure out what file the program
  11. was really trying to use. Why? Because almost always these errors *are* due
  12. to some program calling perror incorrectly with the wrong name.
  13.  
  14. I would suggest ENXIO, EINVAL, or even ENODEV.
  15.  
  16. -- 
  17. Peter da Silva                                            `-_-'
  18. Ferranti International Controls Corporation                'U` 
  19. 12808 West Airport Blvd.  Sugar Land, TX  77478  USA
  20. +1 713 274 5180                            "Zure otsoa besarkatu al duzu gaur?"
  21.  
  22. Volume-Number: Volume 31, Number 24
  23.  
  24.  
  25.